package me.yobol.lintcode.easy.pluswithbit;

/**
 *
 * @author Yobol
 */
public class Main {
    public static void main(String[] args){
        IPlusWithBit pwb = new PlusWithBit();
        assert (pwb.plusWithBit(1, 2) == 3);
        assert (pwb.plusWithBit(1, 1) == 2);
        assert (pwb.plusWithBit(-1, -2) == -3);
        assert (pwb.plusWithBit(-1, -1) == -2);
        assert (pwb.plusWithBit(-1, 2) == 1);
        assert (pwb.plusWithBit(1, -2) == -1);
        assert (pwb.plusWithBit(1, 0) == 1);
        assert (pwb.plusWithBit(0, 1) == 1);
    }
}
